
/*
 * Hlpay-Plus aggregate payment system. Copyright
 * (c) 2022-2023 Hlpay Team Copyright has the right of final interpretation.
 */
package com.hlkj.pay.app.transfer;

import com.hlkj.pay.infrastructure.model.admin.OrganizationDO;
import com.hlkj.pay.vo.admin.req.organization.OrganizationReq;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author Bob
 * @date 2024/09/7
 */
@Mapper
public interface OrganizationReqConvertDo {

    OrganizationReqConvertDo INSTANCE = Mappers.getMapper(OrganizationReqConvertDo.class);

    /**
     * list转换
     *
     * @param list req list
     * @return DO list
     */
    List<OrganizationDO> respList(List<OrganizationReq> list);

    /**
     * 对象转换
     *
     * @param organizationReq req
     * @return DO
     */
    OrganizationDO resp(OrganizationReq organizationReq);
    /**
     * repList
     * @param organizationReqs
     * @return
     */
    List<OrganizationDO> repList(List<OrganizationReq> organizationReqs);
   
}
